package com.esms.service.impl;

import com.esms.dao.DepGrandMapper;
import com.esms.po.DepGrand;
import com.esms.po.QassessMent;
import com.esms.service.IEmployeeDepGrandServer;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeDepGrandServerImpl implements IEmployeeDepGrandServer {
	@Autowired
    private DepGrandMapper depGrandMapper = null;
	
    @Override
	public List<DepGrand> getEmpDeployeeGrandList(int eId,String dId,String qTargetid) {
    	return depGrandMapper.selectBypIdAnddId(dId,qTargetid);
	}
    
    @Override
    public int deleteDepGrand(String eAccount,String qDaccount,String qTargetid) {
         return  depGrandMapper.deleteDepGrand(eAccount,qDaccount,qTargetid);
    }
    
    @Override
    public int insertDepGrand(QassessMent aassessment) {
         return  depGrandMapper.insertDepGrand(aassessment); 
    
    }

	@Override
	public int addQassessMents(@Param("emps")List<QassessMent> qassessMents){
		return  depGrandMapper.addQassessMents(qassessMents);
	}

}
